<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.shengruan.org/tags" prefix ="f"%> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body class="main">
<table class="container" cellpadding="0" cellspacing="0">

<tr class="dark" valign="middle">
<td><table width="100%" border="0">
  <tr>
    <td>
    <input class="button" type="button" value="新增" onClick="document.location='sliderLogo-edit.jsp'">
    </td>
    <td></td>
  </tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><table class="list" align="center" cellspacing="1" cellpadding="0">
<tr class="heading">
<td width=7%>序号</td>
<td width=50%>标题</td>
<td width=17%>标题</td>
<td width=18%>发布时间</td>
<td width=6%>&nbsp;</td>
</tr>
 <c:set var="sort" value="0"/>
<c:forEach var="sliderLogo" items="${requestScope.sliderLogoList}">
<c:set var="sort" value="${sort+1}"/>
<c:set var="count" value="${(pager.currentPage-1)*pager.pageSize+sort}"/>
<tr <c:if test="${sort%2==0}">class="odd"</c:if>>
  <td height="25">${count}</td>
  <td height="25" style="text-align:left">${sliderLogo.title}</td>
  <td><a href="<c:url value='/admin/article/sliderLogo-status.ac?id=${sliderLogo.id}'/>"><c:choose><c:when test="${sliderLogo.status == 0}"><img src="<c:url value='/admin/assets/images/no.png'/>" title="可用" width="16" height="17" border="0" /></c:when><c:otherwise><img src="<c:url value='/admin/assets/images/ok.gif'/>" title="禁用" width="16" height="17" border="0" /></c:otherwise></c:choose></a></td>
  <td>${f:format(sliderLogo.creationTime)}</td>
  <td height="25" class="action">
    &nbsp;<a href="<c:url value='/admin/article/sliderLogo-delete.ac?id=${sliderLogo.id}'/>" onClick="return confirm('确认删除吗？')"><img src="../images/delete.gif" alt="删除" title="删除"></a>
    &nbsp;<a href="<c:url value='/admin/article/sliderLogo-getById.ac?id=${sliderLogo.id}'/>"><img src="../images/edit.gif" alt="编辑" title="编辑"></a>
    &nbsp;</td>
</tr>
</c:forEach>
</table>
</td>
</tr>
</table>
</body>
</html>

